package org.wicket.jbpm.page;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.Link;
import org.wicket.jbpm.WicketJBPMSession;
import org.wicket.jbpm.login.WicketJBPMLogin;

/**
 * @author Emmanuel Nollase - emanux
 * created: May 10, 2009 - 3:37:51 PM
 */
public abstract class WicketJBPMBasePage extends WebPage {

	public WicketJBPMBasePage() {
	
	    add(new Label("user", WicketJBPMSession.get().getUser().getCd() ));
	    add(new Link("logout")
	    {
	        @Override
	        public void onClick()
	        {
	    		getSession().invalidateNow();
	    		setRedirect(true);
	    		setResponsePage(WicketJBPMLogin.class);
	        }
	    });
	    
	    
	}
}

